// 请求状态错误
export const httpLogError = (error,msg)=>{
	error.message = msg
	// uni的提示框
	uni.showToast({
		title:msg,
		icon:'error',
		duration:2000
	})
}

// api请求错误
export const requestError = (response)=>{
	return new Promise((_,reject)=>{
		const {data} = response
		const msg = `api请求出错${response.config.url}:${data.msg}`
		uni.showToast({
			title:msg,
			icon:'error',
			duration:2000
		})
		
		reject(data)
	})
}

// 登录失效
export const throttleToLogin = ()=>{
	
}